package com.rljk.utils;

import org.springframework.context.ApplicationContext;
/**
 * 项目名称：
 * @author:于泓磊
 * 修改日期：2017/11/6
*/
public class Const {
	public static final String SESSION_SECURITY_CODE = "sessionSecCode";	//验证码
	public static final String SESSION_USER = "sessionUser";				//session用的用户
	public static final String SESSION_ROLE_RIGHTS = "sessionRoleRights";
	public static final String sSESSION_ROLE_RIGHTS = "sessionRoleRights";
	public static final String SESSION_QX = "QX";
	public static final String SESSION_userpds = "userpds";			
	public static final String TRUE = "T";
	public static final String FALSE = "F";
	public static final String LOGIN = "/login_toLogin.do";					//登录地址
	public static final String IMAGEPATH = "txt/admin/config/IMG.txt";          //图片服务器地址
	public static final String WEBSOCKET = "admin/config/WEBSOCKET.txt";	//WEBSOCKET配置路径
	public static final String LOGINEDIT = "admin/config/LOGIN.txt";		//登录页面配置
	public static final String UPDOWNLOADPATH = "txt/config/UPDOWNLOADPATH.txt"; //上传图片下载图片工具类所需要的配置
	public static final String NO_INTERCEPTOR_PATH = ".*/((login)|(logout)|(code)|(app)|(weixin)|(static)|(main)|(websocket)|(uploadImgs)).*";	//不对匹配该值的访问路径拦截（正则）
	public static ApplicationContext WEB_APP_CONTEXT = null; //该值会在web容器启动时由WebAppContextListener初始化
	public static final String USERSALT = "younotguess"; //用户二次加密固定盐
	public static final long ACCESS_TOKEN_EXPIRE = 86400000L; //token的过期时间
	public static final String ALI_CODE = "AliCode"; //阿里短信验证码的过期时间
	public static final int ALI_CODE_EXPIRE = 120; //阿里短信验证码的过期时间
	public static final int ALI_CODE_SIZE = 5; //每天用户发送阿里短信验证码的最大次数
	public static final String PAGE	= "admin/config/PAGE.txt";				//分页条数配置路径


	public static final String MYSTONE	= "mystone";				//app我的宝石排序
	public static final int MYSTONE_EXPIRE	= 60*60*24;				//app我的宝石过期时间
	public static final String IOS_APK	= "http://image.rongyaohk.com/gemstone/app/ios.apk";
	public static final String ANDROID_APK	= "http://image.rongyaohk.com/gemstone/app/android.apk";
	public static final String QQCODE_IMG	= "http://image.rongyaohk.com/gemstone/app/apkdown.png";


	
	/**
	 * APP Constants
	 */
	
	//后台添加菜单_请求协议中的参数
	public static final String[] ADDCAIDAN_PARAM_ARRAY = new String[]{"NAME","SEQUENCE","CAIDAN_TYPE"};
	public static final String[] ADDCAIDAN_VALUE_ARRAY = new String[]{"菜单名","顺序","菜单类型：1-代表首页菜单，2代表任务页面菜单"};

	//后台删除菜单_请求协议中的参数
	public static final String[] DELCAIDAN_PARAM_ARRAY = new String[]{"CAIDAN_ID"};
	public static final String[] DELCAIDAN_VALUE_ARRAY = new String[]{"菜单ID"};


	//后台修改菜单_请求协议中的参数
	public static final String[] EDITCAIDAN_PARAM_ARRAY = new String[]{"CAIDAN_ID","NAME","SEQUENCE","CAIDAN_TYPE"};
	public static final String[] EDITCAIDAN_VALUE_ARRAY = new String[]{"菜单ID","菜单名","顺序","菜单类型：1-代表首页菜单，2代表任务页面菜单"};

	//后台查询用户信息_请求协议中的参数
	public static final String[] QUERYUSER_PARAM_ARRAY = new String[]{"USER_ID"};
	public static final String[] QUERYUSER_VALUE_ARRAY = new String[]{"用户ID"};


	//后台菜单列表（全部）
	public static final String[] CAIDANLISTALL_PARAM_ARRAY = new String[]{"CAIDAN_TYPE"};
	public static final String[] CAIDANLISTALL_VALUE_ARRAY = new String[]{"菜单类型：1-代表首页菜单，2代表任务页面菜单"};

	//通过caidanId获取数据_请求协议中的参数
	public static final String[] CAIDANINFO_PARAM_ARRAY = new String[]{"CAIDAN_ID"};
	public static final String[] CAIDANINFO_VALUE_ARRAY = new String[]{"菜单ID"};

	//任务页面显示接口_请求协议中的参数
	public static final String[] TASKSHOWVIEW_PARAM_ARRAY = new String[]{"TOKEN"};
	public static final String[] TASKSHOWVIEW_VALUE_ARRAY = new String[]{"令牌"};

	//更新用户经纬度接口_请求协议中的参数
	public static final String[] UPDLOCATION_PARAM_ARRAY = new String[]{"TOKEN","LONGITUDE","LATITUDE"};
	public static final String[] UPDLOCATION_VALUE_ARRAY = new String[]{"令牌","经度","纬度"};

	//获取新闻详情接口_请求协议中的参数
	public static final String[] NEWSDETAIL_PARAM_ARRAY = new String[]{"NEWSDETAIL_ID"};
	public static final String[] NEWSDETAIL_VALUE_ARRAY = new String[]{"新闻详情表id"};

	//app根据导航栏显示轮播图接口_请求协议中的参数
	public static final String[] BROADCAST_PARAM_ARRAY = new String[]{"NAVICATION_TYPE"};
	public static final String[] BROADCAST_VALUE_ARRAY = new String[]{"导航类型：1-首页，2-任务，3-OTO"};

	//app任务中心获取我发布的和我接受的任务接口_请求协议中的参数
	public static final String[] TASKCENTER_PARAM_ARRAY = new String[]{"TOKEN","TASK_TYPE"};
	public static final String[] TASKCENTER_VALUE_ARRAY = new String[]{"令牌","任务类型"};

	//后台查看单个任务详细_请求协议中的参数
	public static final String[] TASKINFO_PARAM_ARRAY = new String[]{"TASK_ID"};
	public static final String[] TASKINFO_VALUE_ARRAY = new String[]{"任务ID"};

	//后台查看单个首页详细_请求协议中的参数
	public static final String[] HOMEINFO_PARAM_ARRAY = new String[]{"NEWSDETAIL_ID"};
	public static final String[] HOMEINFO_VALUE_ARRAY = new String[]{"新闻详细ID"};

	//优惠券列表_请求协议中的参数
	public static final String[] LISTALL_PARAM_ARRAY = new String[]{"COUPON_TYPE"};
	public static final String[] LISTALL_VALUE_ARRAY = new String[]{"卡券类别（1-电商卡券，2-活动卡券）"};

	//优惠券列表_请求协议中的参数
	public static final String[] COUPONUSERLISTBYUSERID_PARAM_ARRAY = new String[]{"TOKEN"};
	public static final String[] COUPONUSERLISTBYUSERID_VALUE_ARRAY = new String[]{"令牌"};

	//app购物中心获取订单信息_请求协议中的参数
	public static final String[] ORDERINFO_PARAM_ARRAY = new String[]{"TOKEN","STATUS"};
	public static final String[] ORDERINFO_VALUE_ARRAY = new String[]{"令牌","状态"};

	//app获取财富（能量值，XW链，积分，幸运钻）_请求协议中的参数
	public static final String[] GETWEALTHVALUE_PARAM_ARRAY = new String[]{"TOKEN","WEALTH_TYPE"};
	public static final String[] GETWEALTHVALUE_VALUE_ARRAY = new String[]{"令牌","财富类型"};

	//app发布任务_请求协议中的参数
	public static final String[] ADDTASK_PARAM_ARRAY = new String[]{"TOKEN","SUBTITLE","CONTENT"};
	public static final String[] ADDTASK_VALUE_ARRAY = new String[]{"令牌","标题","内容"};

	//后台添加邮箱信息_请求协议中的参数
	public static final String[] ADDMAILINFO_PARAM_ARRAY = new String[]{"MAILINFO_NAME","MAILINFO_NUMBER","MAILINFO_MAILNUM","MAILINFO_TEXT"};
	public static final String[] ADDMAILINFO_VALUE_ARRAY = new String[]{"用户名","手机号","邮箱号","用户输入的信息"};

	//后台注册用户_请求协议中的参数
	public static final String[] REGISTERUSER_PARAM_ARRAY = new String[]{"USERNAME","PHONE","PASSWORD","CODEINFO"};
	public static final String[] REGISTERUSER_VALUE_ARRAY = new String[]{"用户名","手机号","密码","验证码"};

	//后台发送短信验证码_请求协议中的参数
	public static final String[] SENDMSGCODE_PARAM_ARRAY = new String[]{"PHONE"};
	public static final String[] SENDMSGCODE_VALUE_ARRAY = new String[]{"手机号"};

	//后台用户登录_请求协议中的参数
	public static final String[] LOGINRUSER_PARAM_ARRAY = new String[]{"USERNAME","PASSWORD","CODEINFO"};
	public static final String[] LOGINRUSER_VALUE_ARRAY = new String[]{"用户名","密码","验证码"};

	//APP注册用户
	public static final String[] APPREGISTERUSER_PARAM_ARRAY = new String[]{"PHONE","PASSWORD","CODE"};
	public static final String[] APPREGISTERUSER_VALUE_ARRAY = new String[]{"手机号","密码","短信验证码"};

	//APP用户登录
	public static final String[] APPLOGINRUSER_PARAM_ARRAY = new String[]{"PHONE","PASSWORD"};
	public static final String[] APPLOGINRUSER_VALUE_ARRAY = new String[]{"手机号","密码"};



	//app用户手机号登录接口_请求协议中的参数
	public static final String[] IN_USERPHONELOGIN_PARAM_ARRAY = new String[]{"PHONE"};
	public static final String[] IN_USERPHONELOGIN_VALUE_ARRAY = new String[]{"用户登录手机号"};

	//后台申请代理商接口_请求协议中的参数
	public static final String[] ADDAGENT_PARAM_ARRAY = new String[]{"AGENT_NAME","AGENT_PHONE","AGENT_QQ","AGENT_ADDRESS"};
	public static final String[] ADDAGENT_VALUE_ARRAY = new String[]{"姓名","手机号","QQ","地址"};

	//app宝石矿点击收取宝石接口_请求协议中的参数
	public static final String[] CLICKXWSTONE_PARAM_ARRAY = new String[]{"TOKEN","WEALTH_ID"};
	public static final String[] CLICKXWSTONE_VALUE_ARRAY = new String[]{"令牌","生成的宝石财富id"};

	//app点赞功能
	public static final String[] DOTAGREE_PARAM_ARRAY = new String[]{"TOKEN","STATUS","HEADLINES_ID"};
	public static final String[] DOTAGREE_VALUE_ARRAY = new String[]{"令牌","0为取消点赞，1为点赞","头条ID"};


	//app是否点赞
	public static final String[] ISDOTAGREE_PARAM_ARRAY = new String[]{"TOKEN","HEADLINES_ID"};
	public static final String[] ISDOTAGREE_VALUE_ARRAY = new String[]{"令牌","头条ID"};

	//app首页显示接口
	public static final String[] SHOWVIEW_PARAM_ARRAY = new String[]{"TOKEN"};
	public static final String[] SHOWVIEW_VALUE_ARRAY = new String[]{"令牌"};

	//app转发数量
	public static final String[] GETFORWARD_PARAM_ARRAY = new String[]{"HEADLINES_ID"};
	public static final String[] GETFORWARD_VALUE_ARRAY = new String[]{"头条ID"};

	//获取评论列表
	public static final String[] COMMENTLIST_PARAM_ARRAY = new String[]{"NEWSDETAIL_ID"};
	public static final String[] COMMENTLIST_VALUE_ARRAY = new String[]{"新闻ID"};

	//添加评论
	public static final String[] ADDCOMMENT_PARAM_ARRAY = new String[]{"NEWSDETAIL_ID","TOKEN","COMCONTENT"};
	public static final String[] ADDCOMMENT_VALUE_ARRAY = new String[]{"新闻ID","令牌","评论内容"};

	//密码重置
	public static final String[] RESETPW_PARAM_ARRAY = new String[]{"PHONE","PASSWORD","CONFIRMPASSWORD","CODE"};
	public static final String[] RESETPW_VALUE_ARRAY = new String[]{"手机号","密码","确认密码","短信验证码"};

	//通过类型获取公告等列表接口
	public static final String[] GETCAIDANNOTICE_PARAM_ARRAY = new String[]{"NOTICE_TYPE","TOKEN"};
	public static final String[] GETCAIDANNOTICE_VALUE_ARRAY = new String[]{"类型：1-代表公告，2代表系统","令牌"};

	//获取通知列表
	public static final String[] GETNOTICEINFO_PARAM_ARRAY = new String[]{"TOKEN"};
	public static final String[] GETNOTICEINFO_VALUE_ARRAY = new String[]{"令牌"};

	//通过文章ID获取相关评论
	public static final String[] ALLCOMMENT_PARAM_ARRAY = new String[]{"NEWSDETAIL_ID"};
	public static final String[] ALLCOMMENT_VALUE_ARRAY = new String[]{"新闻ID"};

	//修改评论是否显示
	public static final String[] EDITCOMMENTISSHOW_PARAM_ARRAY = new String[]{"COMMENT_ID","IS_SHOW"};
	public static final String[] EDITCOMMENTISSHOW_VALUE_ARRAY = new String[]{"评论ID","是否显示"};

	//修改通知是否显示
	public static final String[] EDITNOTICEISSHOW_PARAM_ARRAY = new String[]{"NOTICEINFO_ID","ISSHOW"};
	public static final String[] EDITNOTICEISSHOW_VALUE_ARRAY = new String[]{"公告ID","是否显示"};

	//添加通知
	public static final String[] ADDNOTICE_PARAM_ARRAY = new String[]{"NOTICE_TITLE","NOTICE_CONTENT","CAIDAN_TYPE","NOTICE_SORT"};
	public static final String[] ADDNOTICE_VALUE_ARRAY = new String[]{"标题","内容","菜单类型：1-代表首页菜单，2代表任务页面菜单","排序(倒序排)"};

	//修改通知
	public static final String[] EDITNOTICE_PARAM_ARRAY = new String[]{"NOTICE_ID"};
	public static final String[] EDITNOTICE_VALUE_ARRAY = new String[]{"通知ID"};

	//后台获取菜单信息
	public static final String[] BACKCAIDAN_PARAM_ARRAY = new String[]{"CAIDAN_TYPE"};
	public static final String[] BACKCAIDAN_VALUE_ARRAY = new String[]{"菜单类型"};

	//获取热推app下载或者公众号推荐
	public static final String[] APPPULBICNUMBER_PARAM_ARRAY = new String[]{"QRCODE_TYPE","TOKEN"};
	public static final String[] APPPULBICNUMBER_VALUE_ARRAY = new String[]{"扫码类型","令牌"};

	//添加评论
	public static final String[] APPPULBICNUMBERDET_PARAM_ARRAY = new String[]{"EXTENSION_ID","TOKEN"};
	public static final String[] APPPULBICNUMBERDET_VALUE_ARRAY = new String[]{"扫码详情id","令牌"};

	//通过用户ID获取自己所属文章的评论列表
	public static final String[] USERCOMMENTLIST_PARAM_ARRAY = new String[]{"TOKEN"};
	public static final String[] USERCOMMENTLIST_VALUE_ARRAY = new String[]{"令牌"};

	//通过用户ID统计有哪些人点赞过该用户的文章
	public static final String[] GETDOTAGREEBYUSERID_PARAM_ARRAY = new String[]{"TOKEN"};
	public static final String[] GETDOTAGREEBYUSERID_VALUE_ARRAY = new String[]{"令牌"};
	//app任务糖果兑换2
	public static final String[] CANDYEXCHANGE_PARAM_ARRAY = new String[]{"TOKEN","XW_NUMBER"};
	public static final String[] UCANDYEXCHANGE_VALUE_ARRAY = new String[]{"令牌","消耗XW链数量"};

	//根据项目库id获取项目概况
	public static final String[] PROJECTSURVEY_PARAM_ARRAY = new String[]{"TOKEN","PROJECTLIBRARY_ID"};
	public static final String[] PROJECTSURVEY_VALUE_ARRAY = new String[]{"令牌","项目库id"};

	//根据项目库id获取项目概况
	public static final String[] QUESTIONDATAILBYID_PARAM_ARRAY = new String[]{"TOKEN","REWARD_ID"};
	public static final String[] QUESTIONDATAILBYID_VALUE_ARRAY = new String[]{"令牌","问卷id"};

	//用户提交问卷列表
	public static final String[] ADDQUESTIONDATAIL_PARAM_ARRAY = new String[]{"TOKEN","REWARD_ID","OPTIONS"};
	public static final String[] ADDQUESTIONDATAIL_VALUE_ARRAY = new String[]{"令牌","问卷id","选项(以逗号分隔)"};




}

